<?php
//狙击枪类
class Sniper{
	private $stock;
	private $bullet;
	private $sight;
	
	public function setStock($stock){
		$this->stock = $stock;
	}
	
	public function setBullet($bullet){
		$this->bullet = $bullet;
	}
	
	public function setSight($sight){
		$this->sight = $sight;
	}
	
	public function display(){
		echo '枪托类型：', $this->stock, '<br/>';
		echo '瞄准器类型：', $this->sight, '<br/>';
		echo '携带子弹数：', $this->bullet, '<br/>';
	}
}